<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"/>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title>支分宝</title>
    <style>
        .hidden{
          display: none;
        }
    </style>
</head>
<body>
<img src="http://csdl.jintianjifen.cn/nopay.jpg" class="hidden" id="image" style="width: 100%;height: auto;" />
</body>
<script type="text/javascript" src="/static/admin/js/jquery.min.js"></script>
<script>
    initData();
    function initData () {
        var out_trade_no = getQueryString("orderNo");
        $.ajax({
            url: "/admin/Test/testtest",
            type: 'post',
            data: {
                out_trade_no: out_trade_no
            },
            dataType: 'JSON',
            success: function (returndata) {
                if(returndata.record_status == 2) {
                    location.href = "https://csdl.jintianjifen.cn/admin/test/test2?" + returndata.msg;
                }else{
                    $('#image').removeClass('hidden');
                }
            }
        })
    }
	function getQueryString(name) {
            var query = window.location.search.substring(1);
            var vars = query.split("&");
            for (var i = 0; i < vars.length; i++) {
                var pair = vars[i].split("=");
                if (pair[0] == name) {
                    return pair[1];
                }
            }
            return null;
        }
</script>
</html>